<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<div class="bg_tt4_1"><?php echo $this->escape($this->article->title); ?></div>
<?php if (isset ($this->article->toc)) : ?>
		<?php echo $this->article->toc; ?>
	<?php endif; ?>
	<?php echo $this->article->text; ?>
<div class="clear"></div>


<?php if($this->article->id == 1):?>
<?php
		$base_url=JURI::base(true)."/templates/hrv/assets/";
		$cid			= 3 ;
		$db =& JFactory::getDBO();
		$sql="SELECT * FROM #__content AS c 
					WHERE c.catid=".(int)$cid."
					AND c.state = 1 ORDER BY c.ordering ASC LIMIT 0,4";
		$db->setQuery($sql);
		$result=$db->loadObjectList();
?>
<div class="bg_tt11 m20t">
	<?php foreach($result as $key => $row):?>
	<div class="float_left p10t m5l"><a href="<?php echo JRoute::_('index.php?option=com_content&view=article&layout=hrvkonsulenter&id='.$row->id);?>"><?php echo $row->title;?></a></div>
		<?php if($key < 3):?>
		<div class="float_left m5l"><img src="<?php echo $base_url;?>img/icon10.png" alt="" /></div>
		<?php endif;?>
	<?php endforeach;?>
	<div class="clear_left"></div>
</div>
<?php endif;?>